//
// Created by xgz on 10/15/21.
//

#ifndef JINGJIA_JVM_CPP_MUTEX_HPP
#define JINGJIA_JVM_CPP_MUTEX_HPP

#include "../precompiled/precompiled.hpp"

class Monitor : public CHeapObj<mtInternal>{
public:
    Monitor();
    void lock();
    void unlock();
    void notify();
    void wait();
private:
    pthread_mutex_t     _startThread_lock[1];
    pthread_cond_t      _cond[1];
};


#endif //JINGJIA_JVM_CPP_MUTEX_HPP
